Namespace - LJCNetCommon
Parameters
name - The element name.
textState - The current text state values.
attribs - The element attributes.
addIndent -
Indicates if the element can be indented.
childIndent -
Indicates if the child elements should be indented.
Returns
The added element begin tag.
Syntax
C# |
public String Begin(String name, TextState textState, Attributes attribs = null, Boolean addIndent = True, Boolean childIndent = True)
|
Appends the element begin tag.
Remarks
Begin() is an "Append" method. It creates the element opening tag with
GetCreate() and adds it to the builder.
The appended text does not end with a new line. This allows for additions
after the text.
The added text will start with a new line if the builder text already has
a value.
Example
C# |
var textState = new TextState();
var hb = new HTMLBuilder(textState);
var attribs = hb.StartAttribs();
hb.Begin("html", textState, attribs);
hb.End("html", textState);
var result = hb.ToString();
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.